package com.geese.module.business.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.geese.common.entity.Business;
import com.geese.module.business.dao.BusinessMapper;

/**
 * Created by Z先生 on 2017/2/27.
 */
@Service
public class BusinessService {
    @Autowired
    BusinessMapper businessMapper;


    public int auditBusinessByIds(List list) {
        return businessMapper.auditByIds(list);
    }

    public int editLockBusinessByIds(List list) {
        return businessMapper.lockByIds(list);
    }

    public int edit(Business business) {
        return businessMapper.updateByPrimaryKeySelective(business);
    }

	public Business findByUserId(Integer userId) {
		return businessMapper.findByUserId(userId);
	}


}
